<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<div class="row" style="padding:0px 10px 10px 0px">
	<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12 text-right">
		<t-auth:roleButton />
	</div>
</div>
<script type="text/javascript">
function addData(){
	var cargoId=$("#cargoId").val();

	top.openModal("/cargo/standardUser/detailed?cargoId="+cargoId+"&type="+"add","standardUser_form","规格详情-添加",1000,200);
}

function editData(){
	var id=getKeyId();
	if(isEditor(id)){
		var cargoId=$("#cargoId").val();
		
		top.openModal("/cargo/collocation/newDetailed?key="+id+"&cargoId="+cargoId,"collocation_form","价格详情-修改",650,310);
	}
}

function selData(){
	var key=getKeyId();
	if(isEditor(key)){
		top.openModal("/cargo/collocation/detailed?key="+key+"&type="+"check","collocation_form","价格详情-查看",650,310);
	
	}
}

function deleteData(){
	 var id=getKeyId();
	 if (isEditor(id)) {
		 var url = $.getVirtualPath()+"/cargo/collocation/delete?key="+id;
		 deleteDataEx(url, searchCallback);
    } 
}

function exportData(){
	var url=$.getVirtualPath()+"/cargo/collocation/exportExcel";
	var data=$("form:first").serialize();
	var cachedId=$.getText(url,data);
	downloadExcel(cachedId);
}
</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/notifications.jsp"%>
